import {createRouter, createWebHashHistory} from 'vue-router'
import HomeView from '@/views/HomeList.vue'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/construction',
      name: 'construction',
      component: () => import('@/views/ConstructionView.vue')
    },
    {
      path: '/supervisor',
      name: 'supervisor',
      component: () => import('@/views/SupervisorView.vue')
    },
    {
      path: '/worker',
      name: 'worker',
      component: () => import('@/views/WorkerView.vue')
    }
  ]
})

export default router